package flux;

public class Vehicule {
	
	private int identifiant;
	private String marque;
	private String modele;
	private int annee;
	private double kilometrage;
	private double prix;
	private int nbExemplaires;
	
	
	
	@Override  
	public boolean equals(Object o){
		
		boolean res=false;
		
		if(this==o){	
			res=true;
			}
		
		else{
			if(this.getClass().equals(o.getClass())){
				Vehicule other=(Vehicule)o;
				if((identifiant==other.identifiant) && (marque==other.marque)&& (modele==other.modele)){
				res=true;
				}
			}
		}
		
		return res;
	}
	

}
